import { cookie } from 'vux'
export default function (router) {
  router.beforeEach((to, from, next) => {
    setTitle(to.meta.title)
    next()
  })
}

function setTitle (title){
  document.title = title;
}